package com.yege.bean;

import com.yege.annotation.ExcludeColumn;
import com.yege.table.HTableBase;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.hadoop.hbase.util.Bytes;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements HTableBase {

    @ExcludeColumn
    private int id;

    private String name;

    private int age;

    @Override
    public byte[] rowkey() {
        return Bytes.toBytes(id);
    }
}
